package patrol.mobile.com.mobilepatrol.activity.security.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.bean.FestivalDuty2Bean;

/**
 * Created by fuzhen.li on 2018/11/13.
 */
public class CarAdapter extends BaseQuickAdapter<FestivalDuty2Bean.AbkHolidayRotaCarListBean> {
    public CarAdapter(Context context) {
        super(context);
    }

    @Override
    protected int attachLayoutRes() {
        return R.layout.item_car;
    }

    @Override
    protected void convert(BaseViewHolder holder, FestivalDuty2Bean.AbkHolidayRotaCarListBean item) {
        holder.setText(R.id.tv_num, (holder.getLayoutPosition() + 1) + "");
        holder.setText(R.id.tv_carLeader, item.getCarLeader());
        holder.setText(R.id.tv_carContact, item.getCarContact());
    }
}
